/**
 * 
 */
package de.gee.erep.client.ui.presenter;

import de.gee.erep.client.Environment;
import de.gee.erep.client.ui.displays.HomeDisplay;

/**
 * @author Matthew Gee created: 15.03.2011
 */
public class HomePresenter extends Presenter<HomeDisplay> {
	/***/
	public static final String PLACE = "home";

	/**
	 * @param homeView
	 *            view
	 * @param environment
	 *            env
	 * @param par
	 *            p
	 */
	public HomePresenter(final HomeDisplay homeView,
			final Environment environment, final String par) {
		super(homeView, environment, par);
		String message = "<div style=\"width:954px\"><div style=\"width:145px;height:100px;overflow:hidden; "
				+ "margin-left:auto;margin-right:auto\" ><p><img src=\"http://www.erepublik.com/images/parts/map-"
				+ "erepublik-logged.png\" alt=\"Erep\"></p></div>"
				+ "<h1 style=\"background-color:#CFF; width:954px; text-align:center\">Welcome to <b style=\""
				+ "text-decoration:underline\">Another Erepublik Tool</b>!</h1>"
				+ "<p style=\"text-align:center;font-family:'Courier New', Courier, monospace; color:#111; back"
				+ "ground-color:#BBEF54\">This is an experimental tool relating the online-browser-game: "
				+ "<strong>Erepublik.com</strong>. You can register here:</p>"
				+ "<div style=\"border:double;width: 323px; height: 104px; right: 1px; text-align: center;top: "
				+ "24px; margin-left:auto;margin-right:auto\">"
				+ "<h4 style=\"color: #3B6786;font-weight: bold;font-size: 16px;display: block;margin-top: 13px;m"
				+ "argin-bottom: 8px;text-shadow: white 0px 1px 0px;cursor: default;\">Welcome to the New World</h4>"
				+ "<a href=\"http://www.erepublik.com/en/register\" title=\"Werde B&uuml;rger\" style=\"ine-height: 51px"
				+ ";background-position: 0 -106px;background-position-x: 0px;background-position-y: -106px;"
				+ "color: #BBEFA4;width: 286px;margin: 0 auto;height: 53px;display: block;line-height: 49px;background"
				+ "-image: url('http://www.erepublik.com/images/modules/homepage/register_button_sprite.png?1294838069');"
				+ "background-position: top;background-repeat: no-repeat;text-align: center;font-weight: bold;color: white;text-"
				+ "shadow: #359E0C 0px -1px 0px;font-size: 16px;\">Werde B&uuml;rger</a></div></div>";
		homeView.addMessage(message);
	}

}
